//
//  PaymentViewController.swift
//  SmartHousekeeper
//
//  Created by 张磊 on 2020/2/22.
//  Copyright © 2020 LS. All rights reserved.
//

import UIKit
//付款
class PaymentViewController: ContributionBaseViewController {
    
    let paymentListView = PaymentListView()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setUI()
        
    }
    func setUI() {
        self.baseView.company.isHidden = true
        self.baseView.rightBtn.isHidden = true
        self.baseView.addSubview(paymentListView)
        paymentListView.snp.makeConstraints { (make) in
            make.top.equalTo(self.baseView.rightBtn.snp.bottom);
            make.left.equalToSuperview();
            make.right.equalToSuperview();
            make.bottom.equalTo(self.baseView);
        }
        paymentListView.paymentBlock = {
            let vc = PaymentSuccessViewController()
            self.navigationController?.pushViewController(vc, animated: true)

        }
    }
    
    
    
    
}
